import React from 'react'
// import store from '../../store/store'

import {useDispatch,useSelector} from 'react-redux'

export default function Movie() {

  const getMovielist = () => {

  }

  const count = useSelector(state=>state.count.count)
  // const { count } = store.getState().count
  // const { movieList } = store.getState().movie
  // console.log(movieList,'movieList');

  return (
    <div>
      <h1>我是Movie组件</h1>
      <p>我收到的Count组件的值是 {count}</p>
      <button onClick={getMovielist}>获取电影的数据</button>
      {

      }
    </div>
  )
}
